#pragma once

#include "Sock.hpp"


#define DFL_PORT 8080

class SelectServer{
    private:
        int lsock; //listen sock
        int port;

    public:
        SelectServer(int _p = DFL_PORT):port(_p)
        {}
        void InitServer()
        {
            lsock = Sock::Socket();
            Sock::Bind(lsock, port);
            Sock::Listen(lsock);
        }
        void Start()
        {
            for(;;){
                //select
            }
        }
        ~SelectServer()
        {}
};


